import React from 'react'

export default function Calclist(props: {logs: String[]; show: ()=> void}) {
  return (
    <div>
        {props.logs.map((log, index) => (
          <div className='log' key={index}>{log}</div>
        ))}
        <button onClick={props.show}>关闭log</button>
    </div>
  )
}
